<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>百顺通云-后台实名认证审核管理</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <!-- 公用js文件引入 -->
        <jsp:include page="../../admin/commonCSS.jsp"></jsp:include>
    </head>
    <body class="skin-blue">
       
        <!-- 公用头部 -->
        <jsp:include page="../../admin/commonHeader.jsp"></jsp:include>
       
        <div class="wrapper row-offcanvas row-offcanvas-left">
            
            <!-- 公用导航 -->
            <jsp:include page="../../admin/commonMenu.jsp"></jsp:include>
            
            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                        企业实名认证管理
                        <small>审核列表</small>
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
                        <li class="active">企业实名认证管理</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content" id="supplier_content">
                    <!-- Small boxes (Stat box) -->
                    <div class="row fixrowscroll">
                        
                        <!-- table数据 -->
                        <div class="box-body table-responsive">
                            <div class="dataTables_wrapper form-inline fixwrapperscroll" role="grid">
                               <div class="row">
	                                <div class="col-xs-6">
										<label style="font-size:15px;">申请状态：</label>
										<input type="hidden" id="pageNum" value="1"> 
										<select name="applyState" id="applyState" style="width: 100px;height: 30px;">
											<c:if test="${state != 1 && state != 2 && state != 3 }">
												<option value="0" selected="selected">全部</option>
												<option value="1" >待审批</option>
												<option value="2" >退回待提交</option>
												<option value="3" >认证成功</option>
											</c:if>
											<c:if test="${state == 1 }">
												<option value="0" >全部</option>
												<option value="1" selected="selected">待审批</option>
												<option value="2" >退回待提交</option>
												<option value="3" >认证成功</option>
											</c:if>
											<c:if test="${state == 2 }">
												<option value="0" >全部</option>
												<option value="1" >待审批</option>
												<option value="2" selected="selected">退回待提交</option>
												<option value="3" >认证成功</option>
											</c:if>
											<c:if test="${state == 3 }">
												<option value="0" selected="selected">全部</option>
												<option value="1" >待审批</option>
												<option value="2" >退回待提交</option>
												<option value="3" selected="selected">认证成功</option>
											</c:if>
										</select>
									</div>
                                </div>
                                <br>
                                
                                <table id="companyList" class="table table-bordered table-hover dataTable" aria-describedby="example2_info">
                                    <thead>
                                        <tr role="row">
                                            <th class="sorting" role="columnheader" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">序号</th>
                                            <th class="sorting" role="columnheader" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">用户名</th>
                                            <th class="sorting" role="columnheader" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">公司名称</th>
                                            <th class="sorting" role="columnheader" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">营业范围</th>
                                            <th class="sorting" role="columnheader" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">注册资金</th>
                                            <th class="sorting" role="columnheader" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">所在地址</th>
                                            <th class="sorting" role="columnheader" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">审核状态</th>
                                            <th class="sorting" role="columnheader" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">操作</th>
                                        </tr>
                                    </thead>

									<tbody role="alert" aria-live="polite" aria-relevant="all">
                                        <c:if test="${companyIdentifyList == null}">
                                       		<tr>
                                       			<td colspan="7">查询无数据</td>
                                       		</tr>
                                        </c:if>
                                        <c:if test="${companyIdentifyList != null}">
                                        	<c:forEach items="${companyIdentifyList}" var="companyIdentify" varStatus="status">
						            	  	    <tr>
						            	  	    	<td>${ status.index + 1}</td>
						            	  	    	<td>${companyIdentify.userName }</td>
						            	  	    	<td>${companyIdentify.companyName }</td>
						            	  	    	<td>${companyIdentify.bnessLicenseRange }</td>
						            	  	    	<td>${companyIdentify.registerMoney }</td>
						            	  	    	<td>${companyIdentify.bnessLicenseProvinceName }${companyIdentify.bnessLicenseCityName }${companyIdentify.bnessLicenseAreaName }${companyIdentify.bnessLicenseAddress } </td>
						            	  	    	<td>
						            	  	    		<c:if test="${companyIdentify.state == 1}">待审批</c:if>
							                        	<c:if test="${companyIdentify.state == 2}">退回待提交</c:if>
							                        	<c:if test="${companyIdentify.state == 3 }">认证成功</c:if>
						            	  	    	</td>
						            	  	    	<td>
						            	  	    		<a href="/sysAdmin/certificateAdmin/cCertificateDetail/${companyIdentify.id}">
							            	  	    		<c:if test="${companyIdentify.state == 1}">去审批</c:if>
								                        	<c:if test="${companyIdentify.state == 2}">查看详情</c:if>
								                        	<c:if test="${companyIdentify.state == 3 }">查看详情</c:if>
							                        	</a>
						            	  	    	</td>
						            	  	    </tr>
					               	  	    </c:forEach>
                                        </c:if>
                                    </tbody>
                                    
                                </table>
								<div id="pagesbox"></div>
                            </div>
                        </div>


                    </div><!-- /.row -->
                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->

		<script type="text/javascript">
			var currentMenu = 'userManager';
		</script>
        <!-- 公用js文件引入 -->
        <jsp:include page="../../admin/commonJs.jsp"></jsp:include>
        
		<!-- 局部js -->
        <script src="/js/admin/userManager/certificateManager.js"></script>

    </body>
</html>